cmake_minimum_required(VERSION 3.8)

project(Fruit)

find_package(OpenCV REQUIRED)

include_directories(./include)

add_executable(yoloIdentify src/yoloIdentify.cpp src/serial.cpp)
add_executable(color src/color.cpp)
add_executable(image src/image.cpp)
add_executable(colorPicker src/colorPicker.cpp)
add_executable(pid_manager src/pid_control.cpp)

target_link_libraries(yoloIdentify ${OpenCV_LIBS} pthread)
target_link_libraries(color ${OpenCV_LIBS} )
target_link_libraries(image ${OpenCV_LIBS} )
target_link_libraries(colorPicker ${OpenCV_LIBS} )